<?
  set_include_path('./'.PATH_SEPARATOR.dirname(__FILE__)."/../");
  include_once "mode/person/fgroup.php";
  try{
  $rows=tbhelper::produce("fgroup");
  $db = new db("mysql:host=localhost;dbname=snsnamal","root","kaixin9999");
  $rows->col["fgid"]->colValue=null;
  $rows->col["fgname"]->colValue="ͬѧ";
  $rows->col["fgowner"]->colValue="1";
  //echo get_class($rows);
  //print_r($rows);
  $fgroup=new fgroupc(&$db,$rows,1);
  //$fgroup->add();
  //$fgroup->update();
  //$fgroup->delete();
  //print_r($fgroup->getList("fgname='ͬѧ'",0,2));
  //print_r($fgroup->getInfo());
  //echo $fgroup->getListNum("fgname='ͬѧ'");
  //echo $fgroup->id;
  }catch(Error $er){
	$er->recode();
  }catch(Exception $er){
	echo $er->getMessage();
}
?>